package com.dhcc.bpm.modules.develop.controller;

import com.dhcc.bpm.modules.develop.service.DatabaseService;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.launch.constant.AppConstant;
import org.springblade.core.log.annotation.ApiLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName DatabaseController
 * @Description 控制器
 * @Author xiafayu
 * @Date 2021/07/21 15:32
 * @Version 1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@ApiIgnore
@RestController
@AllArgsConstructor
@RequestMapping(AppConstant.APPLICATION_SYSTEM_NAME + "/database")
@Api(value = "数据字典", tags = "数据字典")
public class DatabaseController extends BladeController {

    @Autowired
    DatabaseService databaseService;


    /**
     * @return org.springblade.core.tool.api.R<com.dhcc.bpm.modules.develop.entity.Code>
     * @throws
     * @Description 详情
     * @Author xiafayu
     * @Date 2020/2/24 20:10
     **/
    @ApiLog("生成数据字典")
    @PostMapping("/createDataDict")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "生成数据字典", notes = "")
    public void createDataDict(HttpServletResponse response) {
        databaseService.createDataDict("", response);
    }


}